import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import components from './components'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import formaWithArray from './components/container/thousandthPercentile' // 千分位
import highcharts from 'highcharts'
import highcharts3d from 'highcharts/highcharts-3d'
import echarts from 'vue-echarts/components/ECharts'
import echartsGl from 'echarts-gl'
import * as three from 'three'
import http from './components/http/http'
import bus from './components/http/bus'
import flvjs from 'flv.js'
// 引入scroll
import scroll from 'vue-seamless-scroll'
Vue.use(flvjs)
Vue.use(scroll)
Vue.use(ElementUI)
Vue.prototype.$formaWithArray = formaWithArray
Vue.prototype.echarts = echarts
highcharts3d(highcharts)
Vue.use(echarts, echartsGl)
Vue.use(components)
Vue.config.productionTip = false
Vue.prototype.$three = three
Vue.prototype.$get = http.get
Vue.prototype.$post = http.post
Vue.prototype.$bus = bus

Vue.component('echarts', echarts)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
